package action;

public class WaitAction extends Action<Boolean> {
	boolean looping = true;
	
	public void start(float time)
	{
		start(true, false, time);
	}
	
	@Override
	Boolean update ()
	{
		if (internalTime > time) 
		{
			finished = true;
			if (looping)
			{
				reset();
				return target;
			}
			else
			{
				running = false;
				return target;
			}
		}
		else 
		{
			return input;
		}
	}
}
